set(BINARY ${CMAKE_PROJECT_NAME})
file(GLOB_RECURSE SOURCES LIST_DIRECTORIES true *.h *.cpp)
set(SOURCES ${SOURCES})

find_package(sqlite3 REQUIRED)
#find_package(Boost REQUIRED COMPONENTS thread)

include_directories(
    ${SQLite3_INCLUDE_DIRS}
)

add_executable(${BINARY}_run ${SOURCES})

#target_include_directories(${BINARY}_run PRIVATE
#    ${SQLite3_INCLUDE_DIRS}
#)
target_link_libraries(${BINARY}_run
    ${SQLite3_LIBRARIES}
)

add_library(${BINARY}_lib STATIC
    ${SOURCES}
)



set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
